import { getCityAll } from "@/services/modules/city";
import { defineStore } from "pinia";
import {ref} from 'vue'
const usecityStore=defineStore('city',{
    state:()=>{
        const citydata=ref([]);
        const currentcity={
            cityName:'北京'
        }
    },
    actions:{
       async  getCitydata (){
           const res=await getCityAll()
           this.citydata=res.data;
        }
    }
})


export default usecityStore